package com.tourlaid.mamagerment.service

import com.tourlaid.mamagerment.entity.StockIn
import com.tourlaid.mamagerment.form.StockInForm

/**
 * Created by xiaoyongge on 2017/7/23.
 */
interface StockInService {

    fun queryForList(): List<StockIn>?

    fun insert(controlNo: String?, goodsId: Long?, supplierId: Long?, stock: Int?)

    fun getById(id: Long): StockIn?

    fun update(form: StockInForm)

    fun delete(id: Long?)

    fun queryByGoodsIds(goodsIdList: List<Long?>): List<StockIn>
    /**
     * 减库存
     */
    fun minusStock(id: Long?, stock: Int?)

    fun queryByGoodsId(goodsId: Long): List<StockIn>
    /**
     * 加库存
     */
    fun addStock(id: Long?, stock: Int?)
}